package com.cedarhd.finance.msg.domain.entity;

import com.cedarhd.finance.msg.common.enums.PointType;
import lombok.Data;

import javax.persistence.*;

/**
 * 埋点
 * @author Evan
 * @date 2018/3/26
 */
@Data
@Table(name = "t_point")
@Entity
@EntityListeners(Point.class)
public class Point extends IdEntity{
    private static final long serialVersionUID = 8639682602932109163L;

    @Column(columnDefinition = "varchar(50) comment '用户手机号'")
    private String userPhone;

    @Column(columnDefinition = "varchar(50) comment '埋点类型'")
    @Enumerated(EnumType.STRING)
    private PointType pointType;

    @Column(columnDefinition = "varchar(200) comment '埋点描述'")
    private String description;

    @Column(columnDefinition = "varchar(30) comment '记录日期' ")
    private String recordDate;

    @Column(columnDefinition = "int comment '当天累计' default 0 ")
    private Integer num;

}
